package org.jeecg.modules.demo.chat.controller;

import com.alibaba.fastjson.JSON;
import org.wlld.config.Config;
import org.wlld.config.SentenceConfig;
import org.wlld.distinguish.Distinguish;
import org.wlld.entity.FoodPicture;
import org.wlld.entity.PicturePosition;
import org.wlld.entity.SentenceModel;
import org.wlld.entity.WordTwoVectorModel;
import org.wlld.naturalLanguage.Sentence;
import org.wlld.naturalLanguage.word.WordEmbedding;
import org.wlld.tools.Picture;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 * @date 2024/3/28 14:06
 */
public class chattest {


    public static void main(String[] args) throws Exception {
            //深度学习
       // Study();
        String text="2024-05-11";
        if (text.indexOf(":") == -1 && text.length() == 10) {
            System.out.println("111111111");
        }else{
            System.out.println("222222");
        }

    }

    public static void Study() throws Exception {
        SentenceConfig sentenceConfig=new SentenceConfig();
        //{"mapping":{2:2,3:3},"modelB":{"depthNerves":[],"dymNerveStudies":[{"list":[-0.178658285007337,0.25357341377970233,0.6469694163847972,0.11652027766674153,-0.0508881397541992,0.07903223775813992,0.7626686565789889,-0.08809460939104555,-0.01619926068207117,-0.18332706406317853,0.47557200253603493,0.15310879568345787,0.705472406907603,0.4126598482547244,0.5203701706748396,0.3471201487432861,0.33003855062675264,-0.12690926599136482,0.26554887709639846,0.2365991397104924,0.5150627843124626,0.19415329017796962,0.5097185290440924,0.4855216097120189,0.766419072063597]},{"list":[-23.375228029024715,-23.627165728116225,-23.56611252088773,-23.80997529698408,-23.484829402335585,-23.222840973002526,-23.190331810444594,-23.75009598786265,-23.41045077077639,-23.90443079700124,-23.701811531858965,-23.607304677377407,-23.570893120121088,-23.42534606764465,-23.8169825859179,-23.5579673051259,-23.50318403643538,-23.753772580282355,-23.723072529655987,-23.0411391948966,-23.592445725119795,-22.930683227946417,-23.094219329765494,-23.63575277729667,0.08849806573688057]},{"list":[-1914.7550213046388,-1911.6461923111297,-1906.5831983163034,-1902.718369281625,-1897.1368187976495,-1896.3667609668305,-1893.568948266516,-1889.1542726242933,-1887.612890083588,-1883.1504816200902,-1871.4267230626008,-1870.6760978640857,-1870.3106916668294,-1870.2549353404613,-1869.4082795389727,-1842.8809768910437,-1844.26225172423,-1845.178630646876,-1847.890099805082,-1848.967014491524,-1816.6762803074396,-1820.9140073563105,-1822.8674814333308,-1825.1646044200536,0.2884454252875285]},{"list":[-190441.1895942569,-189555.77763633715,-188103.27367721303,-185685.85669245975,-183030.03780336512,-185926.38208647008,-185638.69635278234,-185137.70114158455,-183647.38401566623,-182051.45088027697,-180675.33734014348,-181046.2134846573,-181109.00669147912,-181163.28440465164,-181035.6784918329,-175436.4386322522,-175992.5304103927,-176770.76102659796,-177961.20362920396,-179008.67475427955,-169522.5467007565,-170314.2286815055,-171433.83253561033,-173164.2787887465,0.23017988416889634]}],"dymOutNerveStudy":{"list":[-2.1236314446357023E7,-2.07993073660861E7,-2.007859859269186E7,-1.8917265992672935E7,-1.750450954803155E7,-2.1094515451686583E7,-2.0795104613830738E7,-2.044366305144998E7,-2.0153878273716718E7,-1.9770842715408586E7,-1.9604825633919474E7,-1.9747202727174144E7,-1.9836953371935364E7,-1.987057323355105E7,-1.9671150214468013E7,-1.705077762545318E7,-1.7669670655353658E7,-1.8188531392344076E7,-1.8407928288108896E7,-1.838717477789999E7,-1.4861476797088685E7,-1.5982282712154407E7,-1.6956990082491133E7,-1.694409238254729E7,0.201935948074201]},"outNerves":[]},"modelFood":{"depthNerves":[[{"dendrites":{"1":-9.87845659499828E-5,"2":1.4598364173688545E-5,"3":1.1476123174088547E-4},"threshold":0.007719733621359212},{"dendrites":{"1":4.824038409890406E-5,"2":-6.594693900231801E-5,"3":1.2479507953776656E-4},"threshold":0.010767319050689098},{"dendrites":{"1":-1.0898109535708537E-5,"2":2.86114780075417E-5,"3":8.155742571021903E-6},"threshold":0.023225023920798088},{"dendrites":{"1":1.513543627585568E-4,"2":-1.508261032646227E-4,"3":1.477932282974765E-4},"threshold":0.018641759462333887},{"dendrites":{"1":7.956422598876724E-5,"2":-1.7195467919464095E-5,"3":3.855866197050782E-5},"threshold":0.027499146097903274}]],"dymNerveStudies":[],"dymOutNerveStudy":{"list":[]},"outNerves":[{"dendrites":{"1":1.199331649168674E-4,"2":1.2203748516342168E-4,"3":3.5212349585437436E-4,"4":3.531473405514787E-4,"5":4.935836917660336E-4},"threshold":0.10864564337638426},{"dendrites":{"1":7.446271245162708E-5,"2":4.338756963320807E-5,"3":-2.9760062694447384E-5,"4":5.5910502212365985E-5,"5":7.400436112677347E-5},"threshold":0.09198074054769632},{"dendrites":{"1":-1.5746212825482384E-4,"2":-2.4123059488414237E-4,"3":-5.573508328894465E-4,"4":-4.6802043162512825E-4,"5":-5.202821262043121E-4},"threshold":0.07503371241425527}]},"modelG":{"depthNerves":[],"dymNerveStudies":[{"list":[0.19921528934945906,0.011464031961456206,-0.1369126801133611,0.4173925635696589,0.7292624945756038,0.003157325872935546,0.548717884181891,0.015232742400492189,0.7638713647444629,0.33749601401752527,0.027894995133556588,0.7314702971143601,0.6863930276284835,0.5261267747606476,0.6985770790974669,0.6944495056989596,0.6309045827664329,-0.003129879238571609,0.6722620680782617,0.12483375585465153,-0.12452185208986918,0.7193544529664758,0.20911134034853596,-0.11172348560712725,0.26760940878142114]},{"list":[-19.80404458077283,-20.039314729021726,-20.618183143683055,-19.928244957138165,-20.087157589278117,-20.33103690657624,-20.039143872383026,-19.569704432938376,-20.19298687246938,-20.06039351257738,-19.787724693182906,-19.60299486295524,-19.964515260330828,-19.340418268350533,-19.488595774932577,-19.87694202101099,-19.59384178095297,-20.111333849710434,-19.938710892394774,-19.530433942536227,-19.756885900843294,-19.098950820772338,-19.531287197879607,-19.739193231506007,0.9669063710516116]},{"list":[-1992.185790390931,-1984.1004465180959,-1973.8603609685426,-1963.1832678574083,-1948.3401997587348,-1968.3900144291906,-1963.1590629084849,-1955.0031680097438,-1946.393755933572,-1934.523635722029,-1933.8081742082973,-1931.590896514439,-1926.1942273575414,-1920.342018468202,-1911.9483889268063,-1899.377314827476,-1897.1127273275129,-1892.7606247051222,-1887.7482938005119,-1881.890825723583,-1864.4488371327298,-1864.8291149266624,-1861.003388797124,-1856.0056099913047,0.5878286403784526]},{"list":[-206872.31977382465,-204425.65507086364,-201172.07436357968,-196890.12500664813,-192283.03274616017,-201194.91289015414,-199660.36718681472,-197880.45458647216,-195112.11318906743,-192080.4606428749,-193550.88303391892,-193401.94189630836,-192720.58126843866,-191894.88033590972,-190469.19602776502,-185905.41576114207,-186466.13274458307,-186473.64318650775,-186278.2030329919,-185694.37805103592,-176640.11092703108,-177957.80961310168,-178566.16406208804,-178396.63179488963,0.21798339007816547]}],"dymOutNerveStudy":{"list":[-2.0389658067590788E7,-1.9483854718111984E7,-1.8373101929419994E7,-1.694266894035243E7,-1.5342588510320673E7,-1.9903688367084946E7,-1.938858293457899E7,-1.883701760615521E7,-1.8314852487789672E7,-1.7776675745695487E7,-1.7267161307155296E7,-1.7399918455033984E7,-1.7474810860203713E7,-1.7370833920333188E7,-1.707499139000328E7,-1.3656660551666254E7,-1.4441594122529462E7,-1.5104447417999987E7,-1.535941904576704E7,-1.531223330120019E7,-1.104814988223688E7,-1.2732624514095927E7,-1.3674659496077934E7,-1.317318860758728E7,0.036360158210615334]},"outNerves":[]},"modelR":{"depthNerves":[],"dymNerveStudies":[{"list":[0.531304618953633,0.22235435587783778,0.16268236354577087,0.7906632276652348,0.24938981010604994,0.3255258585998172,0.30200198400025763,0.6804187501444369,-0.02454903083883668,0.15216368808666747,0.617067952466396,0.8454449016331971,0.4491573141492444,0.12882991014221912,0.855896407781525,0.17275519646065132,0.7598159584502463,0.5757382207332016,0.6545233380572681,0.31139365872900077,0.5667134695056775,0.36262113748041636,0.8291450467576205,0.3361451343582726,0.8259678453936524]},{"list":[-6.920931495641699,-7.352117148752433,-6.9911548530526115,-6.8670071826267325,-6.541285989420385,-7.140477955864724,-6.797300801331548,-6.7347645944488255,-6.932059698129231,-6.629095944666939,-7.335641944031924,-6.339091668589237,-6.622447837802307,-6.569357021544778,-6.859064244635977,-6.606225343427077,-7.255849209231352,-7.005538718066982,-7.085148737782015,-7.1422652758803755,-6.4337090861806745,-6.685895605339028,-6.5554140609476725,-7.091458132141172,0.5891644613905098]},{"list":[-629.0237865460758,-623.3820013096512,-615.3189948944329,-608.0099702594385,-599.4876781515239,-623.7700751790165,-618.4444440964552,-611.4413303820097,-604.0236634152371,-596.3468435163277,-615.2607458854485,-609.8840930329518,-604.4668394124783,-598.5457231259933,-590.5414929747991,-604.7909459972129,-600.7472937373434,-596.2567885673529,-590.3956633936311,-583.2156444786362,-592.7796229632511,-590.4054219881347,-585.2357543869728,-579.0936916754172,0.7895072071342787]},{"list":[-61541.70449267675,-60184.27512619885,-58503.81843951854,-56473.65809037742,-54356.5952716808,-60765.484322889635,-59798.77513173595,-58539.25129173728,-57098.4666139958,-55413.745626838296,-58664.129416918324,-58134.95748124648,-57306.57605738499,-56304.75695691781,-55141.469182647,-56070.95683608557,-55644.70981897439,-54908.7845782383,-53904.94252309896,-52830.93168429137,-53350.71838066196,-52830.56176797626,-51550.26028118453,-50342.352001702275,0.5398766898936176]}],"dymOutNerveStudy":{"list":[-6837885.511724568,-6522658.829476985,-6031045.253423684,-5341916.982485576,-4614256.340790734,-6821764.398829608,-6597756.012492112,-6327527.157093827,-6043682.454878452,-5719036.330578513,-5842175.622102917,-5831928.354560537,-5805064.710286867,-5701015.580104113,-5503967.015446503,-4444650.304196466,-4649091.032679245,-4840630.9347355645,-4872585.558774624,-4708170.546213539,-3332016.3564993115,-3769586.273894915,-4214148.791318884,-4184536.972371657,0.7128334545573647]},"outNerves":[]}}
    }

}
